package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.*;

import java.util.List;
import java.util.Map;

public interface CompanyRunningWaterService extends IService<CompanyRunningWater> {


    //商户营收
    List<CompanyRunningWater> queryAllys(CompanyRunningWater companyRunningWater,Integer loginUserId);

    //后台营收
    List<CompanyRunningWater> queryWaters(CompanyRunningWater water);

    //统计每月商品销售量
    List<ShopInfo> queryBuyNum(CompanyRunningWater water);

    //根据订单id查询流水记录
    CompanyRunningWater queryWaterByOid(Integer oid);

    //添加一条流水记录
    Map addWater(CompanyRunningWater water);

    //流水编号
    List<String> getIds(String str);

    List<CompanyRunningWater> queryAllgysys(CompanyRunningWater companyRunningWater, Integer loginUserId);

    //分页查询
    Page<CompanyRunningWater> queryPage(CompanyRunningWater water, Integer pageno, Integer pagesize);

    //商户工资结算
    Map merchantsAndSettlement(Integer id);

    //商户工资结算查询
    com.guigu.service.utils.Page merchantsAndSettlementQuery(Orders orders, Integer pageno, Integer pagesize);

    Double thisMonthRevenue(Integer id);
}
